3.2550 \(\int \frac {(5-x) (3+2 x)^{7/2}}{2+5 x+3 x^2} \, dx\)

Optimal. Leaf size=94 \[ -\frac {2}{21} (2 x+3)^{7/2}+\frac {62}{45} (2 x+3)^{5/2}+\frac {526}{81} (2 x+3)^{3/2}+\frac {3278}{81} \sqrt {2 x+3}+12 \tanh ^{-1}\left (\sqrt {2 x+3}\right )-\frac {4250}{81} \sqrt {\frac {5}{3}} \tanh ^{-1}\left (\sqrt {\frac {3}{5}} \sqrt {2 x+3}\right ) \]

[Out]

526/81*(3+2*x)^(3/2)+62/45*(3+2*x)^(5/2)-2/21*(3+2*x)^(7/2)+12*arctanh((3+2*x)^(1/2))-4250/243*arctanh(1/5*15^
(1/2)*(3+2*x)^(1/2))*15^(1/2)+3278/81*(3+2*x)^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.10, antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 4, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.148, Rules used = {824, 826, 1166, 207} \[ -\frac {2}{21} (2 x+3)^{7/2}+\frac {62}{45} (2 x+3)^{5/2}+\frac {526}{81} (2 x+3)^{3/2}+\frac {3278}{81} \sqrt {2 x+3}+12 \tanh ^{-1}\left (\sqrt {2 x+3}\right )-\frac {4250}{81} \sqrt {\frac {5}{3}} \tanh ^{-1}\left (\sqrt {\frac {3}{5}} \sqrt {2 x+3}\right ) \]

Antiderivative was successfully verified.

[In]

Int[((5 - x)*(3 + 2*x)^(7/2))/(2 + 5*x + 3*x^2),x]

[Out]

(3278*Sqrt[3 + 2*x])/81 + (526*(3 + 2*x)^(3/2))/81 + (62*(3 + 2*x)^(5/2))/45 - (2*(3 + 2*x)^(7/2))/21 + 12*Arc
Tanh[Sqrt[3 + 2*x]] - (4250*Sqrt[5/3]*ArcTanh[Sqrt[3/5]*Sqrt[3 + 2*x]])/81

Rule 207

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTanh[(Rt[b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && NegQ[a/b] && (LtQ[a, 0] || GtQ[b, 0])

Rule 824

Int[(((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_)))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[(g
*(d + e*x)^m)/(c*m), x] + Dist[1/c, Int[((d + e*x)^(m - 1)*Simp[c*d*f - a*e*g + (g*c*d - b*e*g + c*e*f)*x, x])
/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*
e^2, 0] && FractionQ[m] && GtQ[m, 0]

Rule 826

Int[((f_.) + (g_.)*(x_))/(Sqrt[(d_.) + (e_.)*(x_)]*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)), x_Symbol] :> Dist[2,
Subst[Int[(e*f - d*g + g*x^2)/(c*d^2 - b*d*e + a*e^2 - (2*c*d - b*e)*x^2 + c*x^4), x], x, Sqrt[d + e*x]], x] /
; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0]

Rule 1166

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rubi steps

\begin {align*} \int \frac {(5-x) (3+2 x)^{7/2}}{2+5 x+3 x^2} \, dx &=-\frac {2}{21} (3+2 x)^{7/2}+\frac {1}{3} \int \frac {(3+2 x)^{5/2} (49+31 x)}{2+5 x+3 x^2} \, dx\\ &=\frac {62}{45} (3+2 x)^{5/2}-\frac {2}{21} (3+2 x)^{7/2}+\frac {1}{9} \int \frac {(3+2 x)^{3/2} (317+263 x)}{2+5 x+3 x^2} \, dx\\ &=\frac {526}{81} (3+2 x)^{3/2}+\frac {62}{45} (3+2 x)^{5/2}-\frac {2}{21} (3+2 x)^{7/2}+\frac {1}{27} \int \frac {\sqrt {3+2 x} (1801+1639 x)}{2+5 x+3 x^2} \, dx\\ &=\frac {3278}{81} \sqrt {3+2 x}+\frac {526}{81} (3+2 x)^{3/2}+\frac {62}{45} (3+2 x)^{5/2}-\frac {2}{21} (3+2 x)^{7/2}+\frac {1}{81} \int \frac {9653+9167 x}{\sqrt {3+2 x} \left (2+5 x+3 x^2\right )} \, dx\\ &=\frac {3278}{81} \sqrt {3+2 x}+\frac {526}{81} (3+2 x)^{3/2}+\frac {62}{45} (3+2 x)^{5/2}-\frac {2}{21} (3+2 x)^{7/2}+\frac {2}{81} \operatorname {Subst}\left (\int \frac {-8195+9167 x^2}{5-8 x^2+3 x^4} \, dx,x,\sqrt {3+2 x}\right )\\ &=\frac {3278}{81} \sqrt {3+2 x}+\frac {526}{81} (3+2 x)^{3/2}+\frac {62}{45} (3+2 x)^{5/2}-\frac {2}{21} (3+2 x)^{7/2}-36 \operatorname {Subst}\left (\int \frac {1}{-3+3 x^2} \, dx,x,\sqrt {3+2 x}\right )+\frac {21250}{81} \operatorname {Subst}\left (\int \frac {1}{-5+3 x^2} \, dx,x,\sqrt {3+2 x}\right )\\ &=\frac {3278}{81} \sqrt {3+2 x}+\frac {526}{81} (3+2 x)^{3/2}+\frac {62}{45} (3+2 x)^{5/2}-\frac {2}{21} (3+2 x)^{7/2}+12 \tanh ^{-1}\left (\sqrt {3+2 x}\right )-\frac {4250}{81} \sqrt {\frac {5}{3}} \tanh ^{-1}\left (\sqrt {\frac {3}{5}} \sqrt {3+2 x}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.07, size = 70, normalized size = 0.74 \[ -\frac {8 \sqrt {2 x+3} \left (270 x^3-738 x^2-8639 x-24728\right )}{2835}+12 \tanh ^{-1}\left (\sqrt {2 x+3}\right )-\frac {4250}{81} \sqrt {\frac {5}{3}} \tanh ^{-1}\left (\sqrt {\frac {3}{5}} \sqrt {2 x+3}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[((5 - x)*(3 + 2*x)^(7/2))/(2 + 5*x + 3*x^2),x]

[Out]

(-8*Sqrt[3 + 2*x]*(-24728 - 8639*x - 738*x^2 + 270*x^3))/2835 + 12*ArcTanh[Sqrt[3 + 2*x]] - (4250*Sqrt[5/3]*Ar
cTanh[Sqrt[3/5]*Sqrt[3 + 2*x]])/81

________________________________________________________________________________________

fricas [A]  time = 0.48, size = 86, normalized size = 0.91 \[ \frac {2125}{243} \, \sqrt {5} \sqrt {3} \log \left (-\frac {\sqrt {5} \sqrt {3} \sqrt {2 \, x + 3} - 3 \, x - 7}{3 \, x + 2}\right ) - \frac {8}{2835} \, {\left (270 \, x^{3} - 738 \, x^{2} - 8639 \, x - 24728\right )} \sqrt {2 \, x + 3} + 6 \, \log \left (\sqrt {2 \, x + 3} + 1\right ) - 6 \, \log \left (\sqrt {2 \, x + 3} - 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((5-x)*(3+2*x)^(7/2)/(3*x^2+5*x+2),x, algorithm="fricas")

[Out]

2125/243*sqrt(5)*sqrt(3)*log(-(sqrt(5)*sqrt(3)*sqrt(2*x + 3) - 3*x - 7)/(3*x + 2)) - 8/2835*(270*x^3 - 738*x^2
 - 8639*x - 24728)*sqrt(2*x + 3) + 6*log(sqrt(2*x + 3) + 1) - 6*log(sqrt(2*x + 3) - 1)

________________________________________________________________________________________

giac [A]  time = 0.22, size = 101, normalized size = 1.07 \[ -\frac {2}{21} \, {\left (2 \, x + 3\right )}^{\frac {7}{2}} + \frac {62}{45} \, {\left (2 \, x + 3\right )}^{\frac {5}{2}} + \frac {526}{81} \, {\left (2 \, x + 3\right )}^{\frac {3}{2}} + \frac {2125}{243} \, \sqrt {15} \log \left (\frac {{\left | -2 \, \sqrt {15} + 6 \, \sqrt {2 \, x + 3} \right |}}{2 \, {\left (\sqrt {15} + 3 \, \sqrt {2 \, x + 3}\right )}}\right ) + \frac {3278}{81} \, \sqrt {2 \, x + 3} + 6 \, \log \left (\sqrt {2 \, x + 3} + 1\right ) - 6 \, \log \left ({\left | \sqrt {2 \, x + 3} - 1 \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((5-x)*(3+2*x)^(7/2)/(3*x^2+5*x+2),x, algorithm="giac")

[Out]

-2/21*(2*x + 3)^(7/2) + 62/45*(2*x + 3)^(5/2) + 526/81*(2*x + 3)^(3/2) + 2125/243*sqrt(15)*log(1/2*abs(-2*sqrt
(15) + 6*sqrt(2*x + 3))/(sqrt(15) + 3*sqrt(2*x + 3))) + 3278/81*sqrt(2*x + 3) + 6*log(sqrt(2*x + 3) + 1) - 6*l
og(abs(sqrt(2*x + 3) - 1))

________________________________________________________________________________________

maple [A]  time = 0.02, size = 80, normalized size = 0.85 \[ -\frac {4250 \sqrt {15}\, \arctanh \left (\frac {\sqrt {15}\, \sqrt {2 x +3}}{5}\right )}{243}-6 \ln \left (-1+\sqrt {2 x +3}\right )+6 \ln \left (\sqrt {2 x +3}+1\right )-\frac {2 \left (2 x +3\right )^{\frac {7}{2}}}{21}+\frac {62 \left (2 x +3\right )^{\frac {5}{2}}}{45}+\frac {526 \left (2 x +3\right )^{\frac {3}{2}}}{81}+\frac {3278 \sqrt {2 x +3}}{81} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((5-x)*(2*x+3)^(7/2)/(3*x^2+5*x+2),x)

[Out]

-2/21*(2*x+3)^(7/2)+62/45*(2*x+3)^(5/2)+526/81*(2*x+3)^(3/2)+3278/81*(2*x+3)^(1/2)-4250/243*arctanh(1/5*15^(1/
2)*(2*x+3)^(1/2))*15^(1/2)+6*ln((2*x+3)^(1/2)+1)-6*ln(-1+(2*x+3)^(1/2))

________________________________________________________________________________________

maxima [A]  time = 1.22, size = 97, normalized size = 1.03 \[ -\frac {2}{21} \, {\left (2 \, x + 3\right )}^{\frac {7}{2}} + \frac {62}{45} \, {\left (2 \, x + 3\right )}^{\frac {5}{2}} + \frac {526}{81} \, {\left (2 \, x + 3\right )}^{\frac {3}{2}} + \frac {2125}{243} \, \sqrt {15} \log \left (-\frac {\sqrt {15} - 3 \, \sqrt {2 \, x + 3}}{\sqrt {15} + 3 \, \sqrt {2 \, x + 3}}\right ) + \frac {3278}{81} \, \sqrt {2 \, x + 3} + 6 \, \log \left (\sqrt {2 \, x + 3} + 1\right ) - 6 \, \log \left (\sqrt {2 \, x + 3} - 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((5-x)*(3+2*x)^(7/2)/(3*x^2+5*x+2),x, algorithm="maxima")

[Out]

-2/21*(2*x + 3)^(7/2) + 62/45*(2*x + 3)^(5/2) + 526/81*(2*x + 3)^(3/2) + 2125/243*sqrt(15)*log(-(sqrt(15) - 3*
sqrt(2*x + 3))/(sqrt(15) + 3*sqrt(2*x + 3))) + 3278/81*sqrt(2*x + 3) + 6*log(sqrt(2*x + 3) + 1) - 6*log(sqrt(2
*x + 3) - 1)

________________________________________________________________________________________

mupad [B]  time = 2.38, size = 71, normalized size = 0.76 \[ \frac {3278\,\sqrt {2\,x+3}}{81}+\frac {526\,{\left (2\,x+3\right )}^{3/2}}{81}+\frac {62\,{\left (2\,x+3\right )}^{5/2}}{45}-\frac {2\,{\left (2\,x+3\right )}^{7/2}}{21}-\mathrm {atan}\left (\sqrt {2\,x+3}\,1{}\mathrm {i}\right )\,12{}\mathrm {i}+\frac {\sqrt {15}\,\mathrm {atan}\left (\frac {\sqrt {15}\,\sqrt {2\,x+3}\,1{}\mathrm {i}}{5}\right )\,4250{}\mathrm {i}}{243} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-((2*x + 3)^(7/2)*(x - 5))/(5*x + 3*x^2 + 2),x)

[Out]

(15^(1/2)*atan((15^(1/2)*(2*x + 3)^(1/2)*1i)/5)*4250i)/243 - atan((2*x + 3)^(1/2)*1i)*12i + (3278*(2*x + 3)^(1
/2))/81 + (526*(2*x + 3)^(3/2))/81 + (62*(2*x + 3)^(5/2))/45 - (2*(2*x + 3)^(7/2))/21

________________________________________________________________________________________

sympy [A]  time = 113.48, size = 138, normalized size = 1.47 \[ - \frac {2 \left (2 x + 3\right )^{\frac {7}{2}}}{21} + \frac {62 \left (2 x + 3\right )^{\frac {5}{2}}}{45} + \frac {526 \left (2 x + 3\right )^{\frac {3}{2}}}{81} + \frac {3278 \sqrt {2 x + 3}}{81} + \frac {21250 \left (\begin {cases} - \frac {\sqrt {15} \operatorname {acoth}{\left (\frac {\sqrt {15} \sqrt {2 x + 3}}{5} \right )}}{15} & \text {for}\: 2 x + 3 > \frac {5}{3} \\- \frac {\sqrt {15} \operatorname {atanh}{\left (\frac {\sqrt {15} \sqrt {2 x + 3}}{5} \right )}}{15} & \text {for}\: 2 x + 3 < \frac {5}{3} \end {cases}\right )}{81} - 6 \log {\left (\sqrt {2 x + 3} - 1 \right )} + 6 \log {\left (\sqrt {2 x + 3} + 1 \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((5-x)*(3+2*x)**(7/2)/(3*x**2+5*x+2),x)

[Out]

-2*(2*x + 3)**(7/2)/21 + 62*(2*x + 3)**(5/2)/45 + 526*(2*x + 3)**(3/2)/81 + 3278*sqrt(2*x + 3)/81 + 21250*Piec
ewise((-sqrt(15)*acoth(sqrt(15)*sqrt(2*x + 3)/5)/15, 2*x + 3 > 5/3), (-sqrt(15)*atanh(sqrt(15)*sqrt(2*x + 3)/5
)/15, 2*x + 3 < 5/3))/81 - 6*log(sqrt(2*x + 3) - 1) + 6*log(sqrt(2*x + 3) + 1)

________________________________________________________________________________________